package com.four.seckill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author gs
 * @since 2021-12-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("mark_seckill_info")
public class SeckillInfo extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 秒杀记录id
     */
    @TableId(value = "rec_id", type = IdType.AUTO)
    private Integer recId;

    /**
     * 秒杀用户姓名
     */
    private String userName;

    /**
     * 秒杀商品id
     */
    private Integer seId;

    /**
     * 秒杀商品
     */
    private String seName;

    /**
     * 秒杀状态，0失败，1成功
     */
    private Integer seStatic;

    /**
     * 秒杀时间
     */
    private Date seDate;


}
